package com.example.demo.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.example.demo.bean.User

@Dao
interface UserDao {
    @Insert
    suspend fun insert(user: User)

    @Query("SELECT * FROM users")
    fun getAllUsers(): List<User>
}